var request = require('request');


// var data = {
//     prjId: 52,
//     value: undefined,
//     time: '2014-8-30',
//     name: 'SX01'
// };

// request({
//     method: 'post',
//     url: "http://localhost:4909/api/monitorpoint",
//     json: JSON.stringify(data)
// }, function(error, response, body) {
//     if (body) {
//         console.log(body);
//     }
// });

var data = {
    prjId: 52,
    values: "12331231,2222,8.886,1.235",
    time: '2014-8-30',
    names: 'SX01,SX02,SX03,SX04',
    psw:'e67f21cec89c'
};

request({
    method: 'post',
    url: "http://localhost:4909/api/MonitorPointsGroup",
    json: JSON.stringify(data)
}, function(error, response, body) {
    if (body) {
        console.log(body);
    }
});
